package com.lehecai.core.lottery;

import java.util.HashMap;
import java.util.Map;

public class PhaseDrawResultRangeMap {

	
	private static Map<LotteryType, String> rangeMap = new HashMap<LotteryType, String>();
	private static Map<Integer, String> xyscColorMap = new HashMap<Integer, String>();
	
	static{
		
		//默认值
		rangeMap.put(LotteryType.ALL, "00:00:00,23:59:59");
		//海南8选3
		rangeMap.put(LotteryType.HI8X3, "09:00:00,02:59:59");
		//时时彩每天120期,
		rangeMap.put(LotteryType.CQSSC, "00:06:00,00:01:00");
		
		xyscColorMap.put(1, "红");
		xyscColorMap.put(2, "红");
		xyscColorMap.put(3, "蓝");
		xyscColorMap.put(4, "蓝");
		xyscColorMap.put(5, "绿");
		xyscColorMap.put(6, "绿");
		xyscColorMap.put(7, "黄");
		xyscColorMap.put(8, "黄");
		xyscColorMap.put(9, "银");
		xyscColorMap.put(10, "银");
		xyscColorMap.put(11, "紫");
		xyscColorMap.put(12, "紫");
		
	}
	/**
	 * 根据单场开奖结果范围
	 * @param lotteryType
	 * @return
	 */
	public static String getPhaseDrawResultRangeByLotteryType (LotteryType lotteryType) {
		if(lotteryType == null){
			return null;
		}
		String rangeTime = rangeMap.get(lotteryType);
		if(rangeTime == null){
			rangeTime = rangeMap.get(LotteryType.ALL);
		}
		return rangeTime;
	}
	
	public static Map<Integer, String> getPhaseDrawResultXyscColorMap () {
		return xyscColorMap;
	}
}

